from django.db import models

class User(models.Model):
    class Meta():
        db_table = "users"
    email = models.CharField(max_length=200)
    encrypted_password = models.CharField(max_length=200)
    pub_open_id = models.CharField(max_length=200)
    provider = models.CharField(max_length=200)
    wechat_open_id = models.CharField(max_length=200)
    created_at = models.DateTimeField('date published')

    def __str__(self):
        return self.email

  
